package com.dyna.foundation.domain.req;

import com.dyna.constants.DateFatter;
import com.dyna.domain.req.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@ApiModel(value = "管理后台 - 角色分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysRolePageReq extends PageParam {

    @ApiModelProperty(value = "角色名称，模糊匹配", example = "芋道")
    private String name;

    @ApiModelProperty(value = "角色标识，模糊匹配", example = "yudao")
    private String code;

    @ApiModelProperty(value = "展示状态，参见 CommonStatusEnum 枚举类", example = "1")
    private Integer status;

    @ApiModelProperty(value = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
    @DateTimeFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime[] createTime;

}
